﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DisplayTakeTime.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Listi yfir frátekin tíma</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
    <form id="form1" runat="server">
    <!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header" 
                   style="border: medium outset #FFFFFF; background-image: none; background-color:#0000cd">			   
		     <table style="width:100%;">
                 <tr>
                     <td valign="middle" width="100">
        		        <asp:ImageButton ID="_ibmHomePage" runat="server" Height="97px" 
                            ImageAlign="Left" ImageUrl="~/Myndir/Logo_nota.JPG" Width="84px" 
                            onclick="_ibmHomePage_Click" />
                          
                     </td>
                     <td align="center" valign="middle">
                        <asp:Label ID="_lblHeaderText" runat="server"  ForeColor="White" Text="Tímaskráning.is" 
                             Font-Bold="True" Font-Size="28pt"></asp:Label>
                    </td>
                    <td width="100">                    
                    </td>
                </tr>
             </table>
                                
		 </div>
		 <!-- End Header -->
		 
		 
		 <!-- Begin subHeader -->
		 <div id="subHeader"
		        style="border: medium outset #FFFFFF; background-image: none; background-color: #0000cd">
		 
		 <table   style="width:100%;">
		    <tr>
		    <td>   
		        <asp:Image ID="_imgConfirm" runat="server" Height="24px" ImageAlign="Right" 
                 ImageUrl="~/Myndir/notaconfirm.JPG" Width="29px" />
               <asp:Label ID="_lblLogin" runat="server"  ForeColor="White" Text="Innskráning  - ">  </asp:Label>
               <asp:LinkButton ID="_lbtnCompanyBooking" runat="server"  Font-Underline="false" ForeColor="White" 
                   onclick="_lbtnCompanyBooking_Click">Heimasvæði - </asp:LinkButton> 
               
                <asp:Label ID="_lblTake" runat="server"  ForeColor="White" 
                    Text="Fráteknir tímar" Font-Bold="True"></asp:Label>   
            </td>
            </tr>
	         
        </table>		 
        </div>
		 <!-- End subHeader -->
		 
		 <!-- Begin Left Column -->
		 <div id="leftcolumn"              
             style="border: medium outset #FFFFFF; background-color: #0000cd; background-image: none">
		        <table   style="width:100%;">
		            <tr>
		                <td>   
		                  <asp:LinkButton ID="_lbtnCompanyBooking1" runat="server" ForeColor="White" 
                           onclick="_lbtnCompanyBooking_Click">Heimasvæði</asp:LinkButton>  
                        </td>
                    </tr>
        	         <tr>
		                <td>   
    		              &nbsp;
                        </td>
                    </tr>
		            <tr>
		            <td>   
		                <asp:LinkButton ID="_lbtnConfig" runat="server" ForeColor="White" 
                            onclick="_lbtnConfig_Click1">Stillingar</asp:LinkButton>
                        </td>
                    </tr>
        	         
                </table>
           </div>
		 <!-- End Left Column -->
		 
		 <!-- Begin Right Column -->
		 <div id="rightcolumn">
		 <table>
            <tr>
              <td>   
                <asp:Label ID="_lblDisplayTakeTime" runat="server" Text="Fráteknir tímar"></asp:Label> 
              </td>
            </tr>
            <tr>
              <td>   
              <asp:GridView ID="_dtgReservedTime" runat="server"
                AutoGenerateColumns="False" 
                  DataKeyNames="Id" CellPadding="4" ForeColor="#333333" 
                  GridLines="None" Width="562px" onrowdeleting="_dtgReservedTime_RowDeleting" 
                      onrowdatabound="_dtgReservedTime_RowDataBound">
                  <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                  <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                  <Columns>
                      <asp:TemplateField HeaderText="">
                         <ItemTemplate>
                           <asp:LinkButton ID="_lnkTimeDelete" 
                             CommandArgument='<%# Eval("Id") %>' 
                             CommandName="Delete" runat="server">Eyða</asp:LinkButton>
                         </ItemTemplate>
                       </asp:TemplateField>
                      <asp:BoundField HeaderText="Starfsmaður" DataField="WorkstationName" />
                      <asp:BoundField HeaderText="Frá" DataField="FromDate"  DataFormatString="{0:dd.MM.yy}" ReadOnly="True" />
                      <asp:BoundField HeaderText="Tími" DataField="FromTime" ReadOnly="True" />
                      <asp:BoundField HeaderText="Til" DataField="ToDate" DataFormatString="{0:dd.MM.yy}" ReadOnly="True" />
                      <asp:BoundField HeaderText="Tími" DataField="ToTime" />
                  </Columns>
                  <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                  <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                  <HeaderStyle BackColor="#0000cd" Font-Bold="True" ForeColor="White" />
                  <EditRowStyle BackColor="#2461BF" />
                  <AlternatingRowStyle BackColor="White" HorizontalAlign="Center" />
              </asp:GridView>
              </td>
            </tr>
	         
            <tr>
              <td align="right">   
                  <asp:Button ID="_btnTakeTime" runat="server" Text="Skrá inn frí" 
                      onclick="_btnTakeTime_Click" />
              </td>
            </tr>
	         
         </table>      
	     </div>
		 <!-- End Right Column -->
		 
		 <!-- Begin Footer -->
		 <div id="footer" 
             style="border: medium outset #FFFFFF; background-image: none; background-color: #0000cd">
                <table style="width:100%;">
                 <tr>
                     <td align="center">
                        <asp:Label ID="_lblGroup10" runat="server"  ForeColor="White" Text="Hópur10 © 2008" 
                             Font-Bold="False" Font-Size="8pt"></asp:Label>
                    </td>
                </tr>
             </table>
		  </div>
		 <!-- End Footer -->
		 
   </div>
   <!-- End Wrapper -->
    </form>
</body>
</html>
